( function()
 {
     function wtXys(){
                var html = document.querySelector("html");
                var userAgent = navigator.userAgent;
                console.log(userAgent);
                html.className="";
                if(userAgent.indexOf("iPhone")!= -1){
                    html.classList.add("iphone");
                }else if(userAgent.indexOf("iPad")!= -1){
                    html.classList.add("ipad");
                }else if(userAgent.indexOf("Android")!= -1){
                    html.classList.add("android");
                }else{
                    html.classList.add("pc");
                };
                var screenWidth = window.innerWidth;
                var danwei = screenWidth/7.5;
                var html = document.querySelector("html");
                html.style.fontSize = danwei + "px";
           
            };
            
            wtXys();
            window.onresize = function(){
                wtXys();
            }
}
)()